<script>
$(document).ready(function(){
	{params}
	
	var c={
		listdata:{},
		init:function(){
			var d = reim.historysdata[params.num];
			this.info 	 = d;
			this.num 	 = d.num;
			this.sid 	 = d.id;
			this.minid 	  = 999999999;
			this.maxid 	  = 0;
			this.loadci   = 0;
			this.inputobj = $('#input_content_{rand}');
			this.showobj  = $('#viewcontent_{rand}');
			this.showobj.perfectScrollbar();
			this.sendinfo = {
				name:adminname,
				face:adminface,
				id:adminid
			}
			this.receinfo = {
				name:d.name,
				face:d.face,
				id:d.id
			}
			this.type = d.type;
			this.showtit();
			this.loaddata(false);
			this.inputobj.keydown(function(e){
				return c.onkeydown(e);
			});
			if(d.type=='zixun'){
				$('#viewright_{rand}').show();
				$('#zixunshow_{rand}').perfectScrollbar();
			}
			this.inputobj.focus();
			var str='';
			if(d.type=='zixun'){
				str+='<a class="hui" click="zhuang" title="'+lang('zhuang')+'"><i class="icon-share-alt"></i></a>&nbsp; &nbsp;';
				str+='<a class="hui" click="userxx" title="'+lang('userxx')+'"><i class="icon-user"></i></a>&nbsp; &nbsp;';
			}
			if(d.type=='agroup'){
				if(isempt(d.receid))str+='<a class="hui" click="yaoqing" title="'+lang('yaoqing')+'"><i class="icon-plus"></i></a>&nbsp; &nbsp;';
				str+='<a class="hui" onclick="reim.showgroupuser('+this.sid+')" title="'+lang('gusers')+'"><i class="icon-group"></i></a>&nbsp; &nbsp;';
			}
			str+='<a class="hui" id="delbtn{rand}" click="delchat" title="'+lang('delchat')+'"><i class="icon-trash"></i></a>&nbsp;';
			$('#btnright{rand}').html(str);
			if(!nwjsgui){
				$('#tools2_{rand}').remove();
				$('#tools3_{rand}').remove();
			}
			for(var i=0;i<5;i++)if(get('tools'+i+'_{rand}'))get('tools'+i+'_{rand}').title=lang('tools'+i+'');
			$('#zixtio_{rand}').html(lang('zixtio'));
			get('closebtn_{rand}').value = lang('closebtn');
			get('sendbtn_{rand}').value = lang('sendbtn');
			
			get('maindiv_{rand}').addEventListener('drop', function(e) {
				var files = e.dataTransfer;
				c.filedrop(files);
			}, false);
		},
		userxx:function(){
			$('#viewright_{rand}').toggle();
		},
		filedrop:function(o1){
			uploadobj.nownum = this.num;
			uploadobj.change(o1, 0);
		},
		yaoqing:function(){
			js.changeuser('','deptusercheck','邀请人加入会话',{
				onselect:function(sna,sid){
					if(sid){
						js.loading('邀请中...');
						reim.ajax('chat,addusers',{chatid:c.sid,receid:sid},function(ret){
							var info = ret.data.info;
							c.rerenshu(info.renshu);
							js.msgok('邀请成功');
							c.addmsg('已成功邀请“'+sna+'”入会话');
						});
					}
				}
			});
		},
		showtit:function(){
			var d   = this.info;
			var tit = '<img src="'+d.face+'" style="border-radius:50%" width="24px" height="24px" align="absmiddle">&nbsp;<b style="font-size:16px;">'+d.name+'</b>';
			if(d.type=='agroup')tit+='('+d.renshu+')';
			if(d.type=='uchat')tit+='&nbsp;<span class="badgeuser">'+lang('user')+'</span>';
			if(d.type=='zixun')tit+='&nbsp;<span class="badgezixun">'+lang('zixun')+'</span>';
			var str = reim.chatlabel(d.receid);
			if(str)tit+='&nbsp;'+str+'';
			$('#chattitle{rand}').html(tit);
		},
		showreceinfo:function(info){
			if(this.type=='agroup'){
				if(this.info.name != info.name)$('#lists_'+this.num+'').find('font').html(info.name);
				this.info.face   = info.picurl;
				this.info.name   = info.name;
				this.info.renshu = info.renshu;
				this.showtit();
				if(info.createid==useraid){
					var str = '<a class="hui" title="'+lang('edit')+'" onclick="chatobj[\''+this.num+'\'].editchat()"><i class="icon-edit"></i></a>&nbsp; &nbsp;';
					$('#delbtn{rand}').before(str);
				}
			}
			if(this.type=='agent'){
				this.info.url  = info.url;
				this.info.murl = info.murl;
				if(info.url || info.murl){
					var str = '<a class="hui" title="进入应用网址" onclick="reim.agenturl('+this.sid+')"><i class="icon-home"></i></a>&nbsp; &nbsp;';
					$('#delbtn{rand}').before(str);
				}
			}
		},
		openying:function(){
			
		},
		editchat:function(){
			js.prompt('请输入新会话名',function(jg,txt){
				if(jg=='yes' && txt)c.editchats(txt);
			},'会话名修改', this.info.name);
		},
		editchats:function(nwd){
			if(this.info.name == nwd)return;
			this.info.name = nwd;
			$('#lists_'+this.num+'').find('font').html(nwd);
			this.showtit();
			this.addmsg('会话名已改为“'+nwd+'”');
			reim.ajax('chat,editname',{name:nwd,sid:this.sid},function(ret){
				reim.createchats(ret.data);
			});
		},
		rerenshu:function(rens1){
			this.info.renshu = rens1;
			this.showtit();
			reim.historysdata[this.num].renshu = rens1;
		},
		onkeydown:function(e){
			var code = e.keyCode;
			if(code==13 && !e.ctrlKey){
				this.sendcont();
				return false;
			}
			if(e.altKey && code==83){
				this.sendcont();
				return false;
			}
			if(e.altKey && code==67){
				this.close();
				return false;
			}
			if(e.ctrlKey && code==13){
				this.addinput('\n');
				return false;
			}
			return true;
		},
		delchat:function(){
			js.confirm(lang('quedel',this.info.name),function(jg){if(jg=='yes')c.delchats()});
		},
		zhuang:function(){
			changkfid = 0;
			js.confirm('<div id="zhuandiv{rand}"><img src="images/mloading.gif"></div>',function(jg){
				if(jg=='yes')c.savezhuan();
			},lang('zhuang'));
			this.zshouwku(this.kefuarr);
		},
		zshouwku:function(d){
			if(!d){
				reim.ajax('reim,getkefu',{sid:this.sid},function(ret){c.zshouwku(ret.data);});
			}else{
				this.kefuarr = d;
				var i,len=d.length,a1,str='';
				for(i=0;i<len;i++){
					str+='<label><input type="radio" name="qhkefu" onclick="changkfid=this.value" value="'+d[i].id+'"><img src="'+d[i].face+'" align="absmiddle" width="20" height="20" style="border-radius:50%">'+d[i].name+'';
					if(d[i].ranking)str+='<font color=gray>('+d[i].ranking+')</font>';
					str+='</label>&nbsp;&nbsp;';
				}
				$('#zhuandiv{rand}').html(str);
				js.resizetan('alert');
			}
		},
		savezhuan:function(){
			if(changkfid==0)return;
			reim.ajax('reim,savekefu',{sid:this.sid,tid:changkfid},function(ret){
				js.msgok(ret.data);
				c.close();
			},'get',function(err){
				js.msgerror(err.msg);
			});
		},
		delchats:function(){
			this.close();
			reim.delchat(this.type,this.sid);
		},
		addinput:function(s){
			var val = this.inputobj.val()+s;
			this.inputobj.val(val).focus();
		},
		send:function(){
			this.sendcont('');
		},
		sendcont:function(ssnr){
			if(this.sendbool)return;
			js.msg('none');
			var o	= this.inputobj;
			var nr	= strformat.sendinstr(o.val());
			nr		= nr.replace(/</gi,'&lt;').replace(/>/gi,'&gt;').replace(/\n/gi,'<br>');
			if(ssnr)nr=ssnr;
			if(isempt(nr))return false;
			var conss = jm.base64encode(nr);
			if(conss.length>3998){
				js.msg('msg',lang('taiduo'));
				return;
			}
			var nuid= js.now('time'),optdt = js.serverdt();
			var cont= strformat.showqp('right',adminname,optdt, nr, nuid, adminface, nuid);
			this.addcont(cont);
			o.val('').focus();
			this.sendconts(conss, nuid, optdt, 0);
	
			return false;
		},
		sendconts:function(conss, nuid, optdt, fid){
			this.sendbool = true;
			var d 	 = {cont:conss,sid:this.info.id,type:this.info.type,nuid:nuid,optdt:optdt,fileid:fid};
			reim.ajax('reim,sendcont',d,function(ret){
				c.sendsuccess(ret.data);
			},'post',function(ret){
				js.msg();
				if(ret.msg)c.addmsg(ret.msg);
				c.senderror(nuid);
			});	
			
			var ainfo = this.info;
			ainfo.optdt = optdt;
			ainfo.stotal = 0;
			if(ainfo.type=='agroup')conss=''+jm.base64encode(adminname+':')+''+conss+'';
			ainfo.cont = conss;
			reim.showhistorys(ainfo,true);
			$('div[temp]').removeClass('active');
			$('#lists_'+this.num+'').addClass('active');
			reim.chatbadge();
		},
		addmsg:function(msg){
			this.addcont('<div class="showblanks">'+msg+'</div>');
		},
		sendsuccess:function(d){
			this.sendbool = false;
			if(!d.id){
				this.senderror(d.nuid);
				return;
			}
			reim.onoffline(this.sid, d.online);
			$('#'+d.nuid+'').remove();
			this.listdata[d.nuid]=d;
			$('#qipaocont_'+d.nuid+'').contextmenu(function(e){
				c.contright(this,e);
				return false;
			});
		},
		senderror:function(nuid){
			get(nuid).src='images/error.png';
			get(nuid).title=lang('serr');
			this.sendbool=false;
		},
		scrollboot:function(){
			this.showobj.animate({scrollTop:get('viewcontent_{rand}').scrollHeight},100);
		},
		addcont:function(cont, isbf){
			var o	= this.showobj;
			if(cont){if(isbf){o.prepend(cont);}else{o.append(cont);}}
			clearTimeout(this.scrolltime);
			this.scrolltime	= setTimeout(function(){
				c.scrollboot();
				c._addclickf();
			}, 50);
		},

		close:function(){
			reim.closenowtabs();
		},
		tools:function(o1,lx){
			var o = $(o1);
			if(lx=='emts')this.getemts(o);
			if(lx=='file')this.sendfile(o);
			if(lx=='paste')this.pasteimg(false);
			if(lx=='crop')this.cropScreen();
			if(lx=='chan')this.kuaihui(o);
		},
		sendfile:function(bo){
			uploadobj.nownum = this.num;
			uploadobj.click();
		},
		loaddata:function(iref, lxs){
			var iref = (!iref)?false:true;
			var minid= 0;
			if(iref)minid=this.minid;
			this.loadci++;
			reim.ajax('reim,getmess',{type:this.info.type,sid:this.info.id,minid:minid,loadci:this.loadci},function(ret){
				c.loaddatashow(ret.data, iref);
			});
		},
		loaddatashow:function(ret,isbf,isls){
			$('#loaig{rand}').remove();
			if(this.num==reim.nowtabs)reim.yidus(this.type,this.sid);
			if(ret.online==0)reim.onoffline(this.sid, ret.online);
			if(ret.receinfo)this.showreceinfo(ret.receinfo);
			var a 		= ret.rows;
			this.lastdt = ret.nowdt;
			var i,len 	= a.length,cont,lex,nas,fase,nr,d,na=[],rnd,sid;
			$('#loadmored_'+this.num+'').remove();
			if(isbf){
				if(len>0)this.showobj.prepend('<div class="showblanks">---------'+lang('newload')+'---------</div>');
				na = a;
			}else{
				for(i= len-1; i>=0; i--)na.push(a[i]);
			}
			for(i= 0; i<len; i++){
				d   = na[i];
				sid = parseFloat(d.id);
				
				lex = 'left';
				nas = d.sendname;
				fase = d.sendface;
				if(d.right==1){
					lex = 'right';
				}
				nr  = this.contshozt(d.filers);
				if(nr=='')nr= jm.base64decode(d.cont);
				rnd = 'mess_'+sid+'';
				if(get('qipaocont_'+rnd+''))continue;
				cont=this.jsonnr(nr,d.optdt,rnd);
				if(!cont)cont= strformat.showqp(lex,nas,d.optdt,nr ,'', fase, rnd);
				if(!isbf){
					this.addcont(cont, isbf);
				}else{
					this.showobj.prepend(cont);
				}
				this.listdata[rnd]=d;
				if(sid<this.minid)this.minid=sid;
				if(sid>this.maxid)this.maxid=sid;
				$('#qipaocont_'+rnd+'').contextmenu(function(e){
					c.contright(this,e);
					return false;
				});
			}
			if(isbf && len>0)this._addclickf();
			if(ret.nextbo && !isls){
				this.showobj.prepend('<div id="loadmored_'+this.num+'" class="showblanks"><a href="javascript:;" style="color:#aaaaaa;font-size:12px;" onclick="loadmoreda{rand}(this)"><i class="icon-time"></i> '+lang('moregd',ret.sheny)+'</a></div>');
			}else if(len>0 && !isls){
				this.showobj.prepend('<div id="loadmored_'+this.num+'" class="showblanks">'+lang('meyoul')+'</div>');
			}
			if(!this.fisest && ret.showmsg){this.addmsg(ret.showmsg);this.fisest=true;}
		},
		jsonnr:function(nr,dts,rnd){
			if(nr.substr(0,1)=='{'){
				var d = js.decode(nr),str='';
				if(!d.title)return '';
				if(!d.btntxt)d.btntxt=lang('xiang');
				str+='<div align="center" id="ltcont_'+rnd+'"><div class="textcarddt">'+dts+'</div><div id="qipaocont_'+rnd+'" class="textcard" rand="'+rnd+'">';
				str+='<div class="tit">'+d.title+'</div>';
				if(d.picurl)str+='<div class="pic"><img style="max-width:100%;max-height:200px" src="'+d.picurl+'"></div>';
				if(d.description)str+='<div class="desc">'+d.description+'</div>';
				if(d.url)str+='<div onclick="reim.openurl(\''+d.url+'\',1)" class="url">'+d.btntxt+'<span style="float:right"><i class="icon-angle-right"></i></span></div>';
				str+='</div></div>';
				return str;
			}else{
				return '';
			}
		},
		contshozt:function(d){
			return strformat.contshozt(d,1);
		},
		loadmoreda:function(o1){
			$(o1).html('<i class="icon-spinner"></i> '+lang('loading')+'</a>');
			this.loaddata(true);
		},
		recedata:function(){
			if(!get('viewcontent_{rand}'))return;
			this.loadci++;
			reim.ajax('reim,getmess',{type:this.info.type,sid:this.info.id,minid:0,maxid:this.maxid,loadci:this.loadci},function(ret){
				c.loaddatashow(ret.data, false, true);
			});
		},
		onshow:function(stt){
			this.inputobj.focus();
			if(stt)reim.yidu(this.info.type, this.info.id);
		},
		kuaihui:function(o){
			if(!get('aemtsdivhui')){
				var s = '<div id="aemtsdivhui" style="width:400px;height:200px" class="emtsclass">';
				s+='<div style="padding:5px"><img src="images/mloading.gif"></div>';
				s+='</div>';
				$('body').append(s);
				js.addbody('hui','remove','aemtsdivhui');
			}else{
				$('#aemtsdivhui').remove();
				return;
			}
			var o1  = $('#aemtsdivhui');
			o1.toggle();
			var off = o.offset();
			o1.css({'top':''+(off.top-205)+'px','left':''+(off.left)+'px'});
			$('#aemtsdiv').hide();
			this.showkuaihui(this.kuaidata);
		},
		showkuaihui:function(da){
			if(!da){
				reim.ajax('reim,kuaidata',{type:this.info.type,sid:this.sid},function(ret){
					c.showkuaihui(ret.data);
				});
			}else{
				onkuaihui=function(i){c.onkuaihui(i)}
				this.kuaidata=da;
				var i,len=da.length,str='';
				for(i=0;i<len;i++){
					str+='<div onclick="onkuaihui('+i+')" class="kuailist">'+da[i]+'</div>';
				}
				if(str=='')str='<div style="padding:5px">'+lang('meiyw')+'</div>';
				$('#aemtsdivhui').html(str);
			}
		},
		onkuaihui:function(i){
			var nr = this.kuaidata[i];
			$('#aemtsdivhui').remove();
			this.sendcont(nr);
		},
		getemts:function(o){
			if(!get('aemtsdiv')){
				var s = '<div id="aemtsdiv" style="width:400px;height:200px" class="emtsclass">';
				s+='<div style="padding:5px">';
				s+=this.getemtsbq('qq',0, 104, 11, 24);
				s+='</div>';
				s+='</div>';
				$('body').append(s);
				js.addbody('emts','hide','aemtsdiv');
			}
			var o1  = $('#aemtsdiv');
			o1.toggle();
			var off = o.offset();
			o1.css({'top':''+(off.top-205)+'px','left':''+(off.left)+'px'});
			$('#aemtsdivhui').remove();
		},
		getemtsbq:function(wj, oi1,oi2, fzd, dx){
			var i,oi=0,j1 = js.float(100/fzd);
			var s = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>';
			for(i=oi1; i<=oi2; i++){
				oi++;
				s+='<td width="'+j1+'%" title="'+strformat.emotsarr[i+1]+'" align="center"><img onclick="reim.backemts(\''+strformat.emotsarr[i+1]+'\')" src="images/im/emots/'+wj+'/'+i+'.gif" width="'+dx+'" height="'+dx+'"></td>';
				if(oi % fzd==0)s+='</tr><tr>';
			}
			s+='</tr></table>';
			return s;
		},
		sendfileshow:function(f){
			f.face 	= this.sendinfo.face;
			var fa 	= strformat.showupfile(f);
			var cont= fa.cont;
			this.upfilearr = fa;
			this.addcont(cont);
		},
		sendfileok:function(f,str){
			var a=js.decode(str);
			if(!a.id){
				js.msg('msg', str);
				this.senderrornss();
				return;
			}
			var tm= this.upfilearr,conss='';
			f = a;
			strformat.upsuccess(a,'',1);
			if(js.isimg(f.fileext)){
				conss = '['+lang('tupian')+' '+f.filesizecn+']';
				this._addclickf();
			}else{
				conss = '['+f.filename+' '+f.filesizecn+']'
			}
			this.sendconts(jm.base64encode(conss), tm.nuid, tm.optdt, a.id);
		},
		senderrornss:function(){
			this.senderror(this.upfilearr.nuid);
		},
		_addclickf:function(){
			var o = this.showobj.find('img[fid]');
			o.unbind('click');
			o.click(function(){
				c.clickimg(this);
			});
		},
		clickimg:function(o1){
			var o=$(o1);
			var fid=o.attr('fid');
			var src = o1.src.replace('_s.','.');
			$.imgview({url:src,ismobile:false});
		},
		clipobj:function(){
			if(!this.clipobj1)this.clipobj1 = nw.Clipboard.get();
			return this.clipobj1;
		},
		pasteimg:function(bo){
			var snr  = this.clipobj().get('png');
			if(!snr){
				if(!bo)js.msgerror(lang('meuts'),false,1);
				return;
			}
			this.readclipshow(snr);
		},
		readclipshow:function(snr){
			var fa 	= strformat.showupfile({face:this.sendinfo.face}, snr);
			var cont= fa.cont;
			this._sssnuid  = fa.nuid;
			this._sssoptdt = fa.optdt;
			this.upfilearr = fa;
			this.addcont(cont);	
		},
		sendbase64:function(strnr){
			uploadobj.nownum = this.num;
			uploadobj.sendbase64(strnr);
		},
		readclip:function(evt){
			var clipboardData = evt.clipboardData;
			if(!clipboardData)return;
			for(var i=0; i<clipboardData.items.length; i++){  
				var item = clipboardData.items[i];  
				if(item.kind=='file'&&item.type.match(/^image\//i)){  
					var blob = item.getAsFile(),reader = new FileReader();  
					reader.onload=function(){  
						var cont=this.result;
						c.readclipshow(cont);
					}  
					reader.readAsDataURL(blob);
				}  
			} 
		},
		cropScreen:function(){
			this.clipobj().clear();
			jietubool = true;
			im.cropScreen();
			//nwjs.jietu();
		},
		contright:function(o1,e){
			var o=$(o1),rnd=o.attr('rand');
			this.rightqipao(o1,e,rnd);
		},
		rightqipao:function(o1,e,rnd){
			if(!this.rightqipaoobj)this.rightqipaoobj=$.rockmenu({
				data:[],width:130,
				itemsclick:function(d){
					c.rightqipaoclick(d);
				}
			});
			this.randmess = rnd;
			this.rightdata= this.listdata[rnd];
			var d=[{name:'复制',lx:0},{name:'删除',lx:1}];
			if(this.type=='agroup')d.push({name:'@TA',lx:3});
			var chehui = reim.showconfigarr.chehui;
			if(o1.className.indexOf('right')>0 && chehui>0){
				var t1 = js.now('time', this.rightdata.optdt),t2 = js.now('time');
				var t3 = (t2-t1)*0.001;
				if(t3<chehui*60)d.push({name:lang('chehui'),lx:2});
			}
			this.rightqipaoobj.setData(d);
			this.rightqipaoobj.showAt(e.clientX,e.clientY);
		},
		rightqipaoclick:function(d){
			var lx=d.lx;
			var ids = this.rightdata.id;
			if(lx==0){
				var cont = $('#qipaocont_'+this.randmess+'').text();
				if(cont)js.setcopy(cont);
			}
			if(lx==1){
				$('#ltcont_'+this.randmess+'').remove();
				if(!isNaN(ids))reim.ajax('reim,delmess',{type:this.type,sid:this.sid,ids:ids});
			}
			if(lx==3){
				var cont = $('#ltname_'+this.randmess+'').text();
				if(cont)this.addinput('@'+cont+' ');
			}
			if(lx==2 && !isNaN(ids)){
				var o1dd = $('#qipaocont_'+this.randmess+'')
				o1dd.html(js.getmsg(lang('chehui1')));
				reim.ajax('reim,chehuimess',{type:this.type,sid:this.sid,ids:ids}, function(ret){
					o1dd.html(js.getmsg(ret.data.msg1,'green'));
				},'get', function(){
					o1dd.html(js.getmsg(lang('chehui2'),'red'));
				});
			}
		}
	}

	c.init();
	js.initbtn(c);
	loadmoreda{rand}=function(o1){
		c.loadmoreda(o1);
	}
	dbleditstr{rand}=function(fid){
		c.dbleditstr(fid);
	}
	chatobj[c.num] = c;
});
</script>

<div id="maindiv_{rand}">
	<div style="height:50px;overflow:hidden;border-bottom:#dddddd solid 1px;line-height:50px;padding:0px 10px">
	<table width="100%"><tr><td width="80%" id="chattitle{rand}"></td><td align="right" id="btnright{rand}"></td></tr></table>
	</div>
	
	<table width="100%">
	<tr valign="top">
	<td width="100%"><div resizeh="205" id="viewcontent_{rand}" style="height:350px;overflow:hidden;position:relative;"><div id="loaig{rand}" align="center" style="padding:20px"><img src="images/mloading.gif"></div></div></td>
	<td>
	<div resizeh="205" id="viewright_{rand}" style="width:210px;height:350px;border-left:1px #dddddd solid;display:none;overflow:hidden;">
		<div style="height:34px;line-height:34px;padding:0px 10px;border-bottom:1px #eeeeee solid;background:#f5f5f5"><i class="icon-asterisk"></i> <span id="zixtio_{rand}">咨询用户信息</span></div>
		<div resizeh="240" id="zixunshow_{rand}" style="font-size:13px;height:100px;overflow:hidden;position:relative;"></div>
	</div>
	</td>
	</tr>
	</table>
	

	<div class="toolsliao">
		<span id="tools0_{rand}" title="表情" click="tools,emts" class="cursor"><i class="icon-heart"></i></span>
		<span id="tools1_{rand}" title="文件/图片" click="tools,file" class="cursor"><i class="icon-folder-close"></i></span>
		<span id="tools2_{rand}" title="粘贴图片" click="tools,paste" class="cursor"><i class="icon-paste"></i></span>
		<span id="tools3_{rand}" title="截屏" click="tools,crop" class="cursor"><i class="icon-cut"></i></span>
		<span id="tools4_{rand}" title="快捷回复" click="tools,chan" class="cursor"><i class="icon-book"></i></span>
	</div>
	
	<div style="height:80px;overflow:hidden;"><div style="height:70px;margin:5px"><textarea onpaste="im.readclip(reim.nowtabs,event)" class="content" style="background:none;" id="input_content_{rand}"></textarea></div></div>
	
	<div style="height:40px;overflow:hidden;"><div align="right" style="padding:5px 10px"><input style="background:none;color:#aaaaaa;border:none;padding:2px 10px;cursor:pointer" type="button" id="closebtn_{rand}" click="close" value="关闭(C)">&nbsp;&nbsp;<input class="zhu" id="sendbtn_{rand}" style="background:none;border:none;padding:2px 10px;cursor:pointer" click="send" type="button" value="发送(S)"></div></div>
	
</div>